package com.glory.dgcpcpda.adapter;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.glory.dgcpcpda.R;
import com.glory.dgcpcpda.entity.FTTestProgramListEntity;

import java.util.List;

/**
 * FileName: FTTestProgramListAdapter
 * Author: XJH
 * Date: 2020/5/29 14:11
 * Description:
 * History:
 */
public class FTTestProgramListAdapter extends BaseQuickAdapter<FTTestProgramListEntity, BaseViewHolder> {

    public FTTestProgramListAdapter(@Nullable List<FTTestProgramListEntity> data) {
        super(R.layout.item_ft_program_list,data);
    }

    @Override
    protected void convert(BaseViewHolder helper, FTTestProgramListEntity item) {
        helper.setText(R.id.tvPosition,String.valueOf(helper.getAdapterPosition() + 1));
        helper.setText(R.id.tvName,item.getRecipeID());
        helper.setText(R.id.tvVersion,item.getRecipeVer());
        helper.setText(R.id.tvSite,item.getSiteNo());
        helper.setText(R.id.tvGradingMaker,item.getGradingMark());
    }
}
